module.exports = {
    resumesList(state) {
        state.resumeList.map((key) => {
            key.operate = '查看详情';
        });
        return state.resumeList;
    },
    // 查看学生信息
    stuQueryInfo(state) {
        let arrays = Object.entries(state.basicInfo);
        let obj = {};
        arrays.forEach((value) => {
            obj[value[0]] = value[1]['val'];
        });
        return obj;
    },
    // 将部门和人员整合成二级级联
    queryPersons(state) {
        state.queryPersons.map((value) => {});
        return state.queryPersons.map((person) => {
            return {
                label: person.name,
                value: person.login
            };
        });
    },
    consultingList(state) {
        return state.consultingList;
    }
};